home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / h / mta.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-18  |  2.1 KB  |  113 lines

  1. /* mta.h: various structure definitions  */
  2.  
  3. /*
  4.  * @(#) $Header: /xtel/pp/pp-beta/h/RCS/mta.h,v 6.0 1991/12/18 20:42:44 jpo Rel $
  5.  *
  6.  * $Log: mta.h,v $
  7.  * Revision 6.0  1991/12/18  20:42:44  jpo
  8.  * Release 6.0
  9.  *
  10.  *
  11.  */
  12.  
  13.  
  14.  
  15. #ifndef _H_MTA
  16. #define _H_MTA
  17.  
  18.  
  19. #include "adr.h"
  20. #include "list_bpt.h"
  21. #include <isode/psap.h>
  22.  
  23. /* -- MTS papameters */
  24.  
  25. typedef struct    GlobalDomainidentifier {
  26.     char    *global_Country;
  27.     char    *global_Admin;
  28.     char    *global_Private;
  29.     } GlobalDomId;
  30.  
  31. void    GlobalDomId_new ();
  32. void    GlobalDomId_free ();
  33.  
  34. typedef struct    MPDUidentifier {
  35.     GlobalDomId    mpduid_DomId;
  36.     char        *mpduid_string;
  37.     } MPDUid;
  38.  
  39. void    MPDUid_new ();
  40. void    MPDUid_free ();
  41.  
  42. typedef struct    EncodedInformationTypes {
  43.     LIST_BPT    *eit_types;    /* subset of BodyPartTypes
  44.                      -- also contains OID's */
  45.     long        eit_g3parms;
  46.     long        eit_tTXparms;
  47.     long        eit_presentation;
  48. } EncodedIT;
  49.  
  50.  
  51. /* -- MTA parameters */
  52.  
  53. typedef struct    DomainSuppliedInfo {
  54.     UTC            dsi_time;
  55.     UTC        dsi_deferred;
  56.     int        dsi_action;
  57. #define ACTION_RELAYED                  0
  58. #define ACTION_ROUTED                   1
  59.     int         dsi_other_actions;
  60. #define ACTION_REDIRECTED 0x1
  61. #define ACTION_EXPANDED      0x2
  62.     EncodedIT    dsi_converted;
  63.     GlobalDomId    dsi_attempted_md;
  64.     char        *dsi_attempted_mta;
  65. } DomSupInfo;
  66.  
  67. void    DomSupInfo_free ();
  68.  
  69.             /* No need to distinguish types of trace in PP */
  70.             /* Just see if MTA is present */
  71. typedef struct    TraceInformation {
  72.     char                *trace_mta;
  73.     GlobalDomId            trace_DomId;
  74.     DomSupInfo            trace_DomSinfo;
  75.     struct    TraceInformation    *trace_next;
  76. } Trace;
  77.  
  78. Trace    *trace_new ();
  79. Trace    *trace_dup();
  80. void    trace_add ();
  81. void    trace_free ();
  82.  
  83. typedef struct full_name {
  84.     char *fn_addr; /* O/R Adress */
  85.     char *fn_dn;  /* DN */
  86. } FullName;
  87.  
  88. FullName    *fn_new ();
  89. FullName    *fn_dup ();
  90. void        fn_free ();
  91.  
  92. typedef struct dl_history {
  93.     struct dl_history *dlh_next;
  94.     char *dlh_addr; /* O/R Adress */
  95.     char *dlh_dn;  /* DN */
  96.     UTC    dlh_time;
  97. } DLHistory;
  98.  
  99. DLHistory    *dlh_new();
  100. void        dlh_add ();
  101. DLHistory    *dlh_dup ();
  102. void        dlh_free ();
  103.  
  104. typedef struct p3params {
  105.     MPDUid     mpduid;
  106.     UTC    submit_time;
  107.     char    *content_type;
  108.     struct qbuf *originating_mta_certificate;
  109.     struct qbuf *proof_of_submission;
  110. } P3params;
  111.  
  112. #endif
  113.